﻿.device-preview__main {
    display: flex;
    margin-top: 115px;
}

.device-preview__img-wrapper {
    position: relative;
    flex: 1;
    margin-right: 20px;
    height: 605px;

    img {
        width: 100%;
    }
}

.device-preview__aside {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: 35px;
}

.device-preview__preview {
    display: flex;
    color: #4a4a4a;
    position: relative;
    padding: 15px 30px 15px 35px;
    z-index: 1;
    cursor: pointer;

    &.is-active {
        .device-preview__preview-background {
            opacity:1;
        }
        p {
            height:60px;
        }
    }

    h3 {
        font-size: 20px;
        margin: 0;
        margin-bottom: 8px;
    }

    p {
        margin: 0;
        white-space: pre-line;
        width: 200px;
        height: 0;
        transition: height .3s;
        overflow: hidden;
    }
}

.device-preview__preview-background {
    z-index: -1;
    transition: opacity .3s;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 20px;
    background: linear-gradient(90deg,#d2eefa 0,#edeeff);
    border-radius: 100px;
    border-top-left-radius: 80px;
    border-bottom-left-radius: 80px;

    &::before {
        position: absolute;
        top: 50%;
        left: -18px;
        display: inline-block;
        content: "";
        border-top: 20px solid transparent;
        border-right: 20px solid #d2eefa;
        border-bottom: 20px solid transparent;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }
}

.avatar-wrapper {
    position: relative;
    overflow: hidden;
    margin-right: 10px;
    transition: .5s;
    box-sizing: content-box;

    &.is-round {
        .avatar-wrapper__img-wrapper {
            border-radius: 100%;
        }

        img {
            border-radius: 100%;
        }
    }
}

.avatar-wrapper__img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-wrapper__avatar {
    &.border {
        border: 1px solid transparent;
    }
}
